package com.manage.dao;

import com.manage.pojo.entity.electronicFile.CaseInfo;
import com.manage.pojo.vo.GetAllCaseStageInfoByCaseIdVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.TreeSet;

@Mapper
public interface ElectronicFileMapper{

    /*
    * 检查案件是否存在
    * */
    @Select("select count(1) from cm_case where id = #{id}")
    Integer checkCaseId(long id);

    CaseInfo selectCaseInfoById(long id);

    TreeSet<GetAllCaseStageInfoByCaseIdVO> selectAllCaseStageInfoByCaseId(long id);
}
